package net.zhengxinyun.performance.service.indicators;

import net.zhengxinyun.performance.entity.CountryUnitScoreEntity;
import net.zhengxinyun.performance.entity.DepartmentEntity;
import net.zhengxinyun.performance.entity.UserEntity;
import net.zhengxinyun.performance.filter.CountryUnitIndicatorsFilter;
import net.zhengxinyun.performance.filter.CountryUnitScoreFilter;
import org.apache.ibatis.annotations.Mapper;

import java.util.HashMap;
import java.util.List;
import java.util.Map;


public interface CountryUnitScoreService {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table inv_country_unit_score
     *
     * @mbg.generated Mon Jun 24 10:50:28 CST 2019
     */
    String delete(CountryUnitScoreEntity countryUnitScoreEntity);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table inv_country_unit_score
     *
     * @mbg.generated Mon Jun 24 10:50:28 CST 2019
     */
    int insert(CountryUnitScoreEntity record);


    String insertByBatch(List<CountryUnitScoreEntity> countryUnitScoreEntity);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table inv_country_unit_score
     *
     * @mbg.generated Mon Jun 24 10:50:28 CST 2019
     */
    int insertSelective(CountryUnitScoreEntity record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table inv_country_unit_score
     *
     * @mbg.generated Mon Jun 24 10:50:28 CST 2019
     */
    CountryUnitScoreEntity selectByPrimaryKey(Long id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table inv_country_unit_score
     *
     * @mbg.generated Mon Jun 24 10:50:28 CST 2019
     */
    int updateByPrimaryKeySelective(CountryUnitScoreEntity record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table inv_country_unit_score
     *
     * @mbg.generated Mon Jun 24 10:50:28 CST 2019
     */
    int update(CountryUnitScoreEntity record);

    /**
     * 查询所有的县直属单位
     * @return
     */
    List<DepartmentEntity> queryCountryUnit();

    List<CountryUnitScoreEntity> countCountryUnitScore(Long id);

    /**
     * 查询所有的指标列表
     * @return
     */
    List<Map<Integer,String>> queryIndicators();

    List<Map<String ,Object>> queryScoreList(CountryUnitScoreFilter filter);

    int countScore(CountryUnitScoreFilter filter);



    List<CountryUnitScoreFilter> queryScoreHomeDate(CountryUnitScoreFilter filter, UserEntity userEntity);


    int queryForCount(CountryUnitScoreFilter filter);


    String saveImportUnitScore(List<CountryUnitScoreEntity> list ,Long id);

    List<CountryUnitScoreFilter> query(CountryUnitScoreFilter filter );
    List<HashMap<String,Object>> queryAllData(CountryUnitScoreFilter filter);


    List<CountryUnitScoreFilter> getdeptScore(Long indexId,String dateTime);

}